﻿using System.ComponentModel.DataAnnotations;
using System.Xml.Serialization;
using Microsoft.Services.NuGet.Resources;

namespace Microsoft.Services.NuGet {
    [XmlType("file", Namespace = Constants.ManifestSchemaNamespace)]
    public class ManifestFile {
        [Required(ErrorMessageResourceType = typeof(NuGetResources), ErrorMessageResourceName = "Manifest_RequiredMetadataMissing")]
        [XmlAttribute("src")]
        public string Source { get; set; }

        [XmlAttribute("target")]
        public string Target { get; set; }
    }
}